﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductCartManager.ascx.cs" Inherits="Web.Cms.ProductCart.ProductCartManager" %>
<%@ Register src="~/Cms/AjaxCP/Paging.ascx" tagname="PagingAjax" tagprefix="uc1" %>
<%-- <script type="text/javascript">
     $(document).ready(function () {
         $("#<%=txtKeysearch.ClientID%>").autocomplete('/Layout/AutoComplateSearch/TimTheoTenBaiHat.ashx');
     });       
</script>--%>
<script type="text/javascript">
    $(function () {
        $("#<%=txtDatefrom.ClientID %>").datepicker({ showOn: 'button', buttonImage: '/images/calendar_1.gif', buttonImageOnly: true });
        $("#<%=txtDateTo.ClientID %>").datepicker({ showOn: 'button', buttonImage: '/images/calendar_1.gif', buttonImageOnly: true });
    });
</script>
<div id="uc_CMSContents">
<%--<div class="fl">
     <a style="cursor:hand;" href="javascript:void(0)" onclick="javascript:return showPopWinADMIN('/Cms/MusicManager/CreateEditMusic.aspx','QUẢN LÝ NHẠC',750,500,null,__doPostBack)">
        <img src="/App_Themes/Default/Images/Add_b.gif" border="0" />
    </a>  
</div>--%>
<div style="padding-bottom: 20px;" class="fl">
<p class="heading" style="margin-left:400px"><asp:Label runat="server" ID="lbHeader" Text="Danh Sách Đơn Hàng"></asp:Label></p>        
</div>
<div class="clear8px"></div>
<div style="margin-left:250px">   
    <%--<div style="float:left;padding-right:10px;padding-left:10px;"><b>Tìm Kiếm :</b> <asp:TextBox runat="server" ID="txtKeysearch" Height="18" Width="225"></asp:TextBox></div>--%>
    <div style="clear:both;padding-top:5px;"></div>
    <div style="float:left;padding-right:10px;padding-left:10px;"><b>Ngày từ(mm/dd/yyyy): </b> <asp:textbox CssClass="input-txt" id="txtDatefrom" runat="server" Height="18px" Width="150"></asp:textbox></div>        
    <div style="float:left;padding-right:10px;padding-left:112px;"><b>Đến:</b> <asp:textbox CssClass="input-txt" id="txtDateTo" runat="server" Height="18px" Width="150"></asp:textbox></div>    
    <div style="float:left;padding-right:10px;padding-left:20px;"><asp:Button runat="server" ID="btnTimKiem" CssClass="Button_Search" onclick="btnTimKiem_Click"/></div>
</div>
<br />
<div style="clear:both;"><asp:Label Font-Bold="true" ForeColor="red" Font-Size="11px" ID="lblMessage" runat="server"></asp:Label></div>

<br />

<asp:GridView ID="grdProductCart" runat="server" BackColor="#ffffff" AutoGenerateColumns="false"
 OnRowCommand="grdProductCart_RowCommand" Width="100%" BorderColor="Gainsboro"
	BorderStyle="solid" BorderWidth="1px" CellPadding="4" CellSpacing="0" 
        CssClass="Grid" AllowPaging="false" 
        onrowdatabound="grdProductCart_RowDataBound">
	<AlternatingRowStyle CssClass="labe_content_02" />
	<RowStyle CssClass="labe_content_01" />
	<HeaderStyle CssClass="labe_Caption" Font-Bold="True" HorizontalAlign="Center" />
    <Columns>               
         <asp:BoundField HeaderText="STT">
            <ItemStyle HorizontalAlign="Center" Width="20px" />
            <HeaderStyle HorizontalAlign="Center" />            
            <ItemStyle />
        </asp:BoundField>  
<%--        <asp:TemplateField  HeaderText="Mã Code">      
            <ItemStyle HorizontalAlign="Center" Width="100px" />      
            <ItemTemplate><asp:Label runat="server" ID="lbCodId"></asp:Label></ItemTemplate>
        </asp:TemplateField>  --%>               
        <asp:TemplateField  HeaderText="Tên Sản Phẩm">            
            <ItemTemplate><%#Eval("ProductName")%></ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField  HeaderText="Tên Người Mua">            
            <ItemTemplate><%#Eval("FullName")%></ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField HeaderText="Ngày Mua" DataField="CreatedDate" HeaderStyle-Width="120">
            <ItemStyle HorizontalAlign="Center" />
            <HeaderStyle HorizontalAlign="center" />            
        </asp:BoundField> 
        <asp:BoundField HeaderText="Số Lượng" DataField="Quantity" HeaderStyle-Width="120">
            <ItemStyle HorizontalAlign="Center" />
            <HeaderStyle HorizontalAlign="center" />            
        </asp:BoundField>   
        <asp:BoundField HeaderText="Thành Tiền" DataField="TotalPrice" HeaderStyle-Width="100">
            <ItemStyle HorizontalAlign="Center" />
            <HeaderStyle HorizontalAlign="center" />            
        </asp:BoundField>                                     
        <asp:TemplateField HeaderText="Xóa" HeaderStyle-Width="20">
            <ItemTemplate>             
                <asp:Button ID="btnDelete" runat="server" CssClass="Icon_Delete" CommandArgument='<%# Eval("CartId") %>' CommandName="Commanddelete" OnClientClick="return confirm('Bạn có chắc chắn xóa không ?')" />                   
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<p style="text-align:center;">
    <br />            
    <asp:Label runat="server" ID="lbTotal" Font-Bold="true" Font-Size="15px" ForeColor="red"></asp:Label>
    <asp:Label runat="server" ID="lblSearch" Font-Bold="true" Font-Size="15px" ForeColor="red"></asp:Label>            
    <br />  <br />
    <asp:Literal runat="server" ID="ltlPhanTrang"></asp:Literal>
    <br />
    <br />
</p>
<%--<table cellspacing="0" cellpadding="0" border="0" width="100%">       
    <tr>
        <td colspan="4" align="center" style="height: 21px">
            <br />            
            <uc1:PagingAjax ID="PagingAjax1" runat="server" />            
            <br />
        </td>
    </tr>
</table>--%>
</div>